计算机与现代化

• 计算机仿真 • 上一篇    下一篇

基于N-S方程和纹理映射的实时火焰模拟

王 俊1,2,汪继文1,2   

  1. 1.安徽大学计算智能与信号处理教育部重点实验室,安徽合肥230039;
    2.安徽大学计算机科学与技术学院,安徽合肥230601
  • 收稿日期:2013-07-25 修回日期:1900-01-01 出版日期:2013-12-18 发布日期:2013-12-18

WANG Jun1,2, WANG Ji-wen1,2   

  1. 1. Key Lab. of Intelligent Computing & Signal Processing, Ministry of Education, Anhui University, Hefei 230039, China;
    2. School of Computer Science and Technology, Anhui University, Hefei 230601, China
  • Received:2013-07-25 Revised:1900-01-01 Online:2013-12-18 Published:2013-12-18

摘要: 由于使用数学物理方法模拟火焰动画的计算量太大难以实现实时性,本文提出一种新的火焰模拟方法。该方法结合数学物理方法和粒子系统的优点,采用不可压缩的Navier-Stokes方程作为火焰模拟的物理模型,通过简化外力项的计算来提高计算速度。在渲染火焰时,提出一种新的基于纹理的火焰渲染方法来实现令人满意的火焰动画效果。实验基于OpenGL,以C++编程,使用提出的方法成功实现火焰的实时模拟。

关键词: 火焰模拟, 粒子系统, 物理模型, Navier-Stokes方程, 纹理映射

Abstract: Because there is a high computational cost to simulate flame animation by using the methods of mathematical physics, a new flame simulation method is proposed. This method combines the advantages of mathematical and physics method and particle systems, uses the incompressible Navier-Stokes equations as physical models of flame simulation, and increases computing speed by simplifying the calculation of external force term. A new texture-based flame rendering method is proposed to achieve satisfactory results of flame animation. Experiments, based on OpenGL in C++ programming, achieve real-time flame simulation by using the proposed method successfully.

Key words: fire simulation, particle system, physical model, Navier-Stokes equations, texture mapping

中图分类号: